package com.sxjh.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 数据字典
 * </p>
 *
 * @author zixin
 * @since 2023-06-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("it_dictionary")
@ApiModel(value="Dictionary对象", description="数据字典")
public class Dictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "字典名称")
    @TableField("name")
    @NotNull(message = "字典名称不能为空")
    private String name;

    @ApiModelProperty(value = "字典值")
    @TableField("value")
    @NotNull(message = "字典值不能为空")
    private String value;

    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;


}
